﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Finbook.GameApp.Models.V4
{
    public abstract class RoleV4
    {
        public RoleV4(int hp)
        {
            HP = hp;
            MaxHP = hp;
            Skills = new List<Skill>();
        }
        public int MaxHP { get; set; }
        public int HP { get; set; }
        public List<Skill> Skills { get; set; }


        public abstract Skill SelectSkill();
        public virtual void BeHit(int damage)
        {
            HP -= damage;
            HP = HP <= 0 ? 0 : HP;
        }
    }
}
